﻿package com.dykj.apps.web.sysmanager.dao;

import java.util.List;

import com.dykj.platform.framework.dao.hibernate.IPublicDBAccess;
import com.dykj.platform.framework.exception.DatabaseException;

public interface IFunctionDAO extends IPublicDBAccess{
	/**
	 *  取得树形功能菜单
	 * @param 为管理员
	 * @return
	 * @throws DatabaseException
	 */
	public List findFunctionForAdmin(String parent,String type) throws DatabaseException;
	/**
	 *  取得树形功能菜单
	 * @param parent
	 * @return
	 * @throws DatabaseException
	 */
	public List findFunctionById(String parent) throws DatabaseException;
	/**
	 *  取得树形功能菜单
	 * @param parent
	 * @return
	 * @throws DatabaseException
	 */
	public List findFunctionByRole(String parent,String roleid) throws DatabaseException;
	/**
	 *  下一级菜单数
	 * @param parent
	 * @return
	 * @throws DatabaseException
	 */
	public int getFunctionCout(String parent,String type) throws DatabaseException;
	/**
	 * 查询功能信息
	 * @param roleid	被授权的角色
	 * @param croleid 当前的角色
	 * @return
	 * @throws DatabaseException
	 */
	public List findAllFunctionId(String roleid ,String croleid) throws DatabaseException;
}
